﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;

public class 横轴单位 : MonoBehaviour
{
    public Text m_textUI;
    public Transform m_tf大小;

    public void SetName(string _strName)
    {
        m_textUI.text = _strName;
    }

    public void SetValue(float _f, float _fTime = 0.8f)
    {
        m_tf大小.DOScaleX(_f * 0.4f, _fTime).SetEase(Ease.Linear);
    }
}
